package com.android.nodejs.livejs.base;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.View;

public abstract class BaseFragment extends Fragment {

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		inits();
	}

	public abstract void inits();

	public void onViewCreated(View view, Bundle savedInstanceState) {
		initComponents(view);
		addListenners();
		super.onViewCreated(view, savedInstanceState);
	}

	public abstract void initComponents(View view);

	public abstract void addListenners();

}
